import { useCommonStore } from '@/store/common'
import { computed } from 'vue'

export default function () {
  const commonStore = useCommonStore()
  const collapsed = computed<boolean>(() => commonStore.collapsedMenu)
  const toggleCollapsed = commonStore.toggleCollapsed
  return {
    toggleCollapsed,
    collapsed
  }
}
